package haiyangwangwork.day05.homework;

public class Main extends Player{
    public static void main(String[] args) {
//        Player p1=new Swimmer();
//        Player p2=new Shoot();
//        Player p3=new Rider();
//        Player p4=new Ironman();
//        p1.swim();
//        p2.shoot();
//        p3.ride();
//        p4.run();
//        p4.ride();
//        p4.swim();
        MainImpl m1= new MainImpl();
        MainImpl m2=new MainImpl();
        m1.ride();
        m2.shoot();
        m1.diving();
        m1.swim();
    }
}
